<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="/public/js/lovCommon.js"></script>
<!--  /public/bower_components/jquery/jquery.js -->
<!-- 
<script type="text/javascript" src="/public/bower_components/jquery/jquery.js"></script>
 -->
<script type="text/javascript" src="/public/bower_components/jquery/jquery-3.0.0.min.js"></script>
<script type="text/javascript" src="/public/bower_components/jquery-easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="/public/bower_components/jquery-easyui/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="/public/js/order/edit.js"></script>
<script type="text/javascript" src="/public/js/order/buss.js"></script>
<script type="text/javascript" src="/public/js/lovs.js"></script>
<meta charset="UTF-8">
<title>订单编辑</title>
</head>
<body>
	<div class="tab">
		<ul class="tabtit" id="projecthome">
			<li class="current">返回列表</li>
		</ul>
	</div>
	<div class="ittab">
		<div class="usein">
			<input type="hidden" id="poHeaderId" name="poHeaderId" />
			<form id="addDataFormHeader" name="addDataFormHeader">
				<input type="hidden" id="deleteIds" name="deleteIds" />
				<h2 class="mt10">
					订单头信息<b></b>
				</h2>
				<table class="table4" width="100%" border="1" cellspacing="0"
					cellpadding="0">
					<tr>
						<td><span class="red">*</span>订单编号:</td>
						<td><input id="segment1" name="segment1" type="text"
							class="input_text w200" readonly="readonly"/></td>
						<td>供应商名称:</td>
						<td><input class="input_text w200"
							style="width: 200px; height: 22px;" name="vendorId" id="vendorId"
							type="hidden" /> 
							<input class="input_text w200"
							style="width: 200px; height: 22px;" name="vendorName" id="vendorName"
							type="text" readonly/>
						</td>
						<td>采购员:</td>
						<td><input class="input_text w200"
							style="width: 200px; height: 22px;" name="buyer" id="buyer"
							type="hidden" />
							<input class="input_text w200"
							style="width: 200px; height: 22px;" name="buyerName" id="buyerName"
							type="text" readonly/>
							</td>
						<td>总金额:</td>
						<td><input class="input_text w200"
							style="width: 200px; height: 22px;" name="sumAmount"
							id="sumAmount" type="text" readonly="readonly" /></td>
					</tr>
					<tr>
					<!-- 
						<td>制单员:</td>
						<td><input class="input_text w200"
							style="width: 200px; height: 22px;" name="purchaseOrderMaker"
							id="purchaseOrderMaker" type="text" /></td> -->
						<td>采购订单日期:</td>
						<td><input class="easyui-datebox"
							style="width: 200px; height: 22px;" name="purchaseOrderDate"
							editable="false" id="purchaseOrderDate" type="text" /></td>
						<td>优先级:</td>
						<td>
							<select id="SelPriority">
						    <!-- 
								<option value>--请选择--</option>-->
								<option value="NORMAL" selected="selected">常规</option>
								<option value="URGENT">加急</option>
							</select>
						</td>
						<td>状态:</td>
						<td>
							<select id="SelStatus">
						    <!-- 
								<option value>--请选择--</option>-->
								<option value="RECORDED" selected="selected">录入</option>
								<option value="RECEIVED">接收完成</option>
							</select>
						</td>
						<td>备注:</td>
						<td colspan="2"><input type="text" id="remark" name="remark"
							class="input_text w200" /></td>
					</tr>
				</table>
			</form>
		</div>
	</div>
	<br>
	<br>
	<div style="overflow: scroll; display: block;">
		<h3>
			<span>订单行信息</span>
		</h3>
		<div align="right">
			<a href="javascript:void(0)" onclick="addLine('create','')">新增行</a> <a
				href="javascript:void(0)" onclick="deleteLine()">删除行</a>
		</div>
		<table id="fixedThead" style="width: 1185px" cellpadding="1"
			border="1" cellspacing="1">
			<tr>
				<td id="checkAllTd" style="width: 50px;" class="bgColor_eee">全选<input
					id="selectAll" name="checkAll" type="checkbox"></td>
				<td style="width: 35px;" class="bgColor_eee">NO.</td>
				<!-- 
				<td style="width: 80px;" class="bgColor_eee">物料ID</td>
				<td style="width: 80px;" class="bgColor_eee">物料编码</td>
				<td style="width: 80px;" class="bgColor_eee">物料类别ID</td>
				-->
				<td style="width: 105px;" class="bgColor_eee">合同行号</td>
				<td style="width: 80px;" class="bgColor_eee"><span class="red">*</span>物料编码</td>
				<td style="width: 80px;" class="bgColor_eee">物料名称</td>
				<td style="width: 80px;" class="bgColor_eee">版本编码</td>
				<td style="width: 80px;" class="bgColor_eee">版本名称</td>
				<!-- 20170601
				<td style="width: 80px;" class="bgColor_eee">版本型号</td>
				<td style="width: 80px;" class="bgColor_eee">空间</td>
				 -->
				<td style="width: 105px;" class="bgColor_eee"><span class="red">*</span>数量</td>
				<!-- 20170601 -->
				<td style="width: 80px;" class="bgColor_eee">采购单价</td>
				<td style="width: 105px;" class="bgColor_eee"><span class="red">*</span>金额</td>
				<!-- 20170601
				<td style="width: 95px;" class="bgColor_eee">税率</td>
				<td style="width: 105px;" class="bgColor_eee">税额</td>
				<td style="width: 105px;" class="bgColor_eee">含税金额</td>
				-->
				<td style="width: 105px;" class="bgColor_eee">计划发货日期</td>
				<td style="width: 80px;" class="bgColor_eee">订单状态</td>
				<td style="width: 155px;" class="bgColor_eee">备注</td>
<!-- 				<td style="width: 105px;" class="bgColor_eee">合同行号</td> -->
<!-- 				<td style="width: 80px;" class="bgColor_eee"><span class="red">*</span>物料编码</td> -->
<!-- 				<td style="width: 80px;" class="bgColor_eee">物料名称</td> -->
<!-- 				<td style="width: 105px;" class="bgColor_eee"><span class="red">*</span>数量</td> -->
<!-- 				<td style="width: 105px;" class="bgColor_eee"><span class="red">*</span>金额</td> -->
<!-- 				<td style="width: 95px;" class="bgColor_eee">税率</td> -->
<!-- 				<td style="width: 105px;" class="bgColor_eee">税额</td> -->
<!-- 				<td style="width: 105px;" class="bgColor_eee">含税金额</td> -->
<!-- 				<td style="width: 105px;" class="bgColor_eee">计划发货日期</td> -->
<!-- 				<td style="width: 155px;" class="bgColor_eee">备注</td> -->
			</tr>
		</table>
	</div>

	<div class="usein" align="center">
		<a href="javascript:;"
			class="add btn btn-primary ml10 funcbtn add_user">保存</a> <a
			href="javascript:;"
			class="empty btn btn-danger ml10 funcbtn select_user"> 取消</a>
	</div>


<!-- 弹出窗口 -->
<div id="vendor_dialogbox" class="pop">
	<div class="usein">
		<h2 class="mt10">基本信息<b></b></h2>
		<table class="table4" width="100%" border="0" cellspacing="0" cellpadding="0" >
			<tr>
				<td>供应商名称</td>
				<td class="tl">
					<input id="vendorNameLov" type="text" class="input_text w200"/>
				</td>
				<td>供应商联系人</td>
				<td class="tl">
					<input id="vendorContactNameLov" type="text" class="input_text w200"/>
				</td>
				<td class="tl">
					<a href="javascript:;" class="check btn btn-info ml10 funcbtn select_user">查询</a>
				</td>
			</tr>
		</table>
	</div>
	<div >
	<table class="easyui-datagrid" id="vendorGrid"></table>
	</div>
<!-- 弹出窗口 -->
<div id="materiel_dialogbox" class="pop">
	<div class="usein">
		<h2 class="mt10">基本信息<b></b></h2>
		<table class="table4" width="100%" border="0" cellspacing="0" cellpadding="0" >
			<tr>
				<td>物料编码</td>
				<td class="tl">
					<input id="segment1Lov" type="text" class="input_text w200"/>
				</td>
				<td>物料名称</td>
				<td class="tl">
					<input id="materielNameLov" type="text" class="input_text w200"/>
				</td>
				<td class="tl">
					<a href="javascript:;" class="materielQuery btn btn-info ml10 funcbtn select_user" id='materielQuery'>查询</a>
				</td>
			</tr>
		</table>
	</div>
	<div >
	<table class="easyui-datagrid" id="materielGrid"></table>
	</div>
</div>
<!-- 弹出窗口 -->
<div id="contractLine_dialogbox" class="pop">
	<div class="usein">
		<h2 class="mt10">基本信息<b></b></h2>
		<table class="table4" width="100%" border="0" cellspacing="0" cellpadding="0" >
			<tr>
				<td>合同行号</td>
				<td class="tl">
					<input id="contractLineNumLov" type="text" class="input_text w200" style="width: 150px"/>
				</td>
				<td>物料编码</td>
				<td class="tl">
					<input id="materielCode1Lov" type="text" class="input_text w200" style="width: 150px"/>
				</td>
				<td>物料名称</td>
				<td class="tl">
					<input id="materielName1Lov" type="text" class="input_text w200" style="width: 150px"/>
				</td>
				<td class="tl">
					<a href="javascript:;" class="contractLineQuery btn btn-info ml10 funcbtn select_user" id='contractLineQuery'>查询</a>
				</td>
			</tr>
		</table>
	</div>
	<div >
	<table class="easyui-datagrid" id="contractLineGrid"></table>
	</div>
</div>
<!-- 弹出窗口 -->
<div id="buyer_dialogbox" class="pop">
	<div class="usein">
		<h2 class="mt10">基本信息<b></b></h2>
		<table class="table4" width="100%" border="0" cellspacing="0" cellpadding="0" >
			<tr>
				<td>姓名</td>
				<td class="tl">
					<input id="employeeNameLov" type="text" class="input_text w200"/>
				</td>
				<td class="tl">
					<a href="javascript:;" class="buyerQuery btn btn-info ml10 funcbtn select_user" id='buyerQuery'>查询</a>
				</td>
			</tr>
		</table>
	</div>
	<div >
	<table class="easyui-datagrid" id="buyerGrid"></table>
	</div>
</div>
</body>
</html>